<template>
	<view>
		<cu-custom bgColor="bg-gradual-blue" :isBack="false">
			<block slot="backText">返回</block>
			<block slot="content">关于我们</block>
		</cu-custom>
		<button class="cu-btn bg-green shadow-blur round" @tap="btnList">跳转list</button>
		<button type="primary" @tap="clearStorage">清除Storage,重置页面</button>
	</view>
</template>
<script>
	export default {
		data() {
			return {
				CustomBar: this.CustomBar,
				StatusBar: this.StatusBar,
				list:new Array(20),
			};
		},
		methods:{
			clearStorage() {
				uni.clearStorageSync();
				uni.showToast({
					title:'清除Storage成功'
				})
				uni.reLaunch({
					url: '../index/index'
				})
			},
			btnList(){
				console.log('list');
				uni.navigateTo({
					url: '../list/list',
					animationType: 'pop-in',
					animationDuration: 200
				});
			}
		},
		
		onLoad() {
			console.log(this.CustomBar);
		}
	}
</script>

<style>
</style>
